import { useState } from 'react'
import { Video } from '@nutui/nutui-react'

export default function Ganjing() {
    const [source, setSource] = useState({
        src: '',
        type: 'video/mp4',
      })
      const options = {
        controls: true,
      }
    const play = (elm) => console.log('play', elm)
    const pause = (elm) => console.log('pause', elm)
    const playend = (elm) => console.log('playend', elm)
    return (
        <div>
            <Video
                source={source}
                options={options}
                onPlay={play}
                onPause={pause}
                onPlayEnd={playend}
            />
        </div>
    )
}
